﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using vw08_equest.Models;

namespace vw08_equest.Controllers
{
    public class AppController : Controller
    {
        //
        // GET: /App/

        public ActionResult Index()
        {
            EquestDBDataContext db = new EquestDBDataContext();
            ViewBag.ExamList = db.Exams.Where(p => p.IsDelete == false).ToList();
            return View();
        }

        [HttpPost]
        public ActionResult Index(FormCollection frm)
        {
            return RedirectToAction("Exam");
        }

        public ActionResult Exam()
        {
            return View();
        }
    }
}
